package com.yuji.aacar.bean.request;

import com.yuji.aacar.bean.beans.Order;
import com.yuji.aacar.net.bean.HttpCoreBaseRequest;

public class SubmitRequest extends HttpCoreBaseRequest {

    private Order order;

    private String productId;
    private String washType;//洗车类型 1-预约洗车 2-及时洗车
    private String brandId;
    private String brandName;
    private String seriesId;
    private String seriesName;
    private String carType;
    private String carLibType;
    private String provinceCode;
    private String provinceName;
    private String cityCode;
    private String cityName;
    private String areaCode;
    private String areaName;
    private String roomCode;
    private String roomName;
    private String detailAddress;
    private String carNo;
    private String phoneNo;
    private String linkman;
    private String bookStartTime;
    private String bookEndTime;
    private String productPrice;
    private String couponNo;
    private String couponAmount;
    private String payIntegral;//积分
    private String userRankPrice; //用户等级价格
    private String bookDiscPrice;//预约价格
    private String enjoyPrice;//尊享价格
    private String resultProductPrice;//最终产品价格
    private String userRankId;//会员等级
    private String payAmount;//会员等级


    public Order getOrder() {
        return order;
    }

    public void setOrder(Order order) {
        this.order = order;
    }

    public void resetOrderValue() {
        if (null != order) {
            productId = order.getProductId();
            washType = order.getWashType();//洗车类型 1-预约洗车 2-及时洗车
            brandId = order.getBrandId();
            brandName = order.getBrandName();
            seriesId = order.getSeriesId();
            seriesName = order.getSeriesName();
            carType = order.getCarType();
            carLibType = order.getCarLibType();
            provinceCode = order.getProvinceCode();
            provinceName = order.getProvinceName();
            cityCode = order.getCityCode();
            cityName = order.getCityName();
            areaCode = order.getAreaCode();
            areaName = order.getAreaName();
            roomCode = order.getRoomCode();
            roomName = order.getRoomName();
            detailAddress = order.getDetailAddress();
            carNo = order.getCarNo();
            phoneNo = order.getPhoneNo();
            linkman = order.getLinkman();
            bookStartTime = order.getBookStartTime();
            bookEndTime = order.getBookEndTime();
            productPrice = order.getProductPrice();
            couponNo = order.getCouponNo();
            couponAmount = order.getCouponAmount();
            payIntegral = order.getPayIntegral();//积分
            userRankPrice = order.getUserRankPrice(); //用户等级价格
            bookDiscPrice = order.getBookDiscPrice();//预约价格
            enjoyPrice = order.getEnjoyPrice();//尊享价格
            resultProductPrice = order.getResultProductPrice();//最终产品价格
            userRankId = order.getUserRankId();//会员等级
            payAmount = order.getPayAmount();
        }
    }
}
